/**
 * error code
 *
 * @author yangxiang
 */
public enum GolfErrorCodeEnum {

    SUCCESS("0000", "成功"),
    NO_DATA("1002", "无数据"),
    PARAM_ERROR("1003", "参数错误"),
    INSERT_FAIL("1004", "插入数据错误"),
    QUERY_FAIL("1005", "查询错误"),
    UPDATE_FAIL("1006", "修改数据错误"),
    DATA_ERROR("1008", "数据异常"),
    DUPLICATE_ERROR("1009", "重复操作"),
    NO_AUTH("1010", "无操作权限"),
    LOGIN_INVALID("1011", "登录失效"),
    OP_FAIL("1012", "操作失败"),
    FLAT_FAIL("1013", "启动工作流失败"),
    EMAIL_FAIL("1014", "用户邮箱信息为空"),
    HTTP_CONNECT_FAIL("1015", "HTTP调用外部接口失败"),
    CREATE_FBT_APPLY_FAIL("1016", "在分贝通创建审批单失败"),
    DUBBO_ERROR("1017", "dubbo接口异常"),
    EXIST_BORROW_BILL("1018", "已存在未结清借款单，此次不允许借款"),
    EXIST_SHORT_TIME_BORROW_BILL("1018", "已存在未结清短期借款单，此次不允许借款"),
    EXIST_LONG_TIME_BORROW_BILL("1018", "已存在未结清长期借款单，此次不允许借款"),
    ANALYSIS_FILE_FAIL("1019", "读取文件中的内容失败，未导入任何数据"),
    WRITE_FILE_FAIL("1020", "写入文件失败"),
    UPLOAD_ERROR("1021", "文件上传失败"),
    QUERY_DEPT_BUDGET_FAIL("1022", "查询部门预算失败"),
    ADD_DEPT_BUDGET_FAIL("1023", "添加部门预算失败"),
    UPDATE_DEPT_BUDGET_FAIL("1024", "修改部门预算失败"),
    EXPORT_DEPT_BUDGET_FAIL("1025", "导出部门预算失败"),
    BUDGET_MUST_GT_CONSUMPTION("1026", "预算金额不能小于消耗金额与锁定消耗金额之和"),
    QUERY_DEPT_CONFIG_FAIL("1027", "查询部门配置失败"),
    ADD_DEPT_CONFIG_FAIL("1028", "添加部门配置失败"),
    ADD_PERSONAL_BUDGET_FAIL("1030", "添加个人预算失败"),
    QUERY_PERSONAL_BUDGET_FAIL("1031", "查询个人预算失败"),
    UPDATE_PERSONAL_BUDGET_FAIL("1032", "修改个人预算失败"),
    SURPLUS_BUDGET_LESS("1033", "剩余预算不足"),

    EXCEPTION("9999", "系统异常");


    private String errCode;

    private String errMsg;

    GolfErrorCodeEnum(String errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

}